package com.colin.service.impl;

import com.colin.mapper.JiQiMapper;
import com.colin.pojo.JiQi;
import com.colin.service.JiQiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JiQiServiceImpl implements JiQiService {
@Autowired
    JiQiMapper jiQiMapper;
    @Override
    public List<JiQi> selectAll () {
        return jiQiMapper.selectAll ();
    }

    @Override
    public void insert (JiQi jiQi) {
        jiQiMapper.insert(jiQi);
    }

    @Override
    public void delete (Integer id) {
        jiQiMapper.delete(id);
    }

    @Override
    public int count () {
        return jiQiMapper.count();
    }
}
